import xadmin
from .models import Operator,OptionLog


class OperatorAdmin(object):
    pass


class OptionLogAdmin(object):
    list_display=("operator",'device','create_time','devicestatus')
    search_fields=['operator__name','device__name']
    list_filter = ["operator",'devicestatus','create_time','device',]
    pass


xadmin.site.register(Operator,OperatorAdmin)
xadmin.site.register(OptionLog,OptionLogAdmin)